package com.team1.system.librarycredit.domain;

import com.team1.common.annotation.Excel;
import com.team1.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 信用度信息管理对象 library_credit
 *
 * @author hyy
 * @date 2023-04-09
 */
public class LibraryCredit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 信用度信息id */
    private String creditId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 图书id */
    @Excel(name = "图书id")
    private Long bookId;

    /** 借书id */
    @Excel(name = "借书id")
    private String borrowId;

    /** 信用度偏移量 */
    @Excel(name = "信用度偏移量")
    private String creditOffset;

    /** 上链状态 */
    @Excel(name = "上链状态")
    private String creditTobc;

    /** 备用字段1 */
    @Excel(name = "备用字段1")
    private String tag1;

    /** 备用字段2 */
    @Excel(name = "备用字段2")
    private String tag2;

    public void setCreditId(String creditId)
    {
        this.creditId = creditId;
    }

    public String getCreditId()
    {
        return creditId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId()
    {
        return bookId;
    }
    public void setBorrowId(String borrowId)
    {
        this.borrowId = borrowId;
    }

    public String getBorrowId()
    {
        return borrowId;
    }
    public void setCreditOffset(String creditOffset)
    {
        this.creditOffset = creditOffset;
    }

    public String getCreditOffset()
    {
        return creditOffset;
    }
    public void setCreditTobc(String creditTobc)
    {
        this.creditTobc = creditTobc;
    }

    public String getCreditTobc()
    {
        return creditTobc;
    }
    public void setTag1(String tag1)
    {
        this.tag1 = tag1;
    }

    public String getTag1()
    {
        return tag1;
    }
    public void setTag2(String tag2)
    {
        this.tag2 = tag2;
    }

    public String getTag2()
    {
        return tag2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("creditId", getCreditId())
            .append("userId", getUserId())
            .append("bookId", getBookId())
            .append("borrowId", getBorrowId())
            .append("creditOffset", getCreditOffset())
            .append("creditTobc", getCreditTobc())
            .append("tag1", getTag1())
            .append("tag2", getTag2())
            .toString();
    }
}
